/***************************************************
> Copyright (C) 2024 ==LENA== All rights reserved.
> File Name: 7.121.c
> Author: lena
> Mail:lena_li@126.com
> Created Time: 2024年07月12日 星期五 00时56分14秒
***************************************************/

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
float str(float *adv,int p);
int main(int argc,const char* argv[])
{
	float array[5]={0};
	int p=0;
	float *adv=NULL;
	adv=array;
	str(adv,p)
printf("%f",num);
		return 0;
}
float str(float *adv,int p){
	float num=0,sum=0;
	int p=0,i=0,j=0;
	char *adv=(char*)malloc(sizeof(char)*5);
	memset(adv,0,5*sizeof(char));
	for(i=0;i<5;i++){
		scanf("%c",adv);
	}
	for(j=0;j<5;j++){
		if(*(adv+i)==0){
			sum+=*(adv+i);
			p++;


		}
		num=sum/p;
	}

return num;
}
